package composite.topografias;


/**
 * @author Juan Manuel Ruiz
 * @version 1.0
 * @created 12-sep.-2013 11:38:16
 * 
 */


public abstract class Topografia {


	public abstract double proporcionAgua();
	public abstract double proporcionTierra();
	public abstract boolean esIgualA(Object pObject);
	
	public Topografia() {
		super();
	}
	
	protected Topografia getTopografia(int i) throws ComposicionTopograficaInvalidaException {
		return this;
	}

	@Override
	public String toString() {
		
		return super.toString().substring(super.toString().indexOf(".")+1,super.toString().indexOf("@")) + "\n \t[proporcionDeAgua()=" + proporcionAgua()
				+ ", proporcionDeTierra()=" + proporcionTierra() + "]";
	}
	protected void add(Topografia t, int posicion) throws ComposicionTopograficaInvalidaException {
		// TODO Auto-generated method stub
		
	}



	
}//end Topografia